from ADBs import AdbTools
from CentralizedMonitor import CentralizedMonitor
from MemoryMonitor import MemoryMonitor

MemoryMonitor.set_base_path()
devs = AdbTools.devices()
mms = []
for dev in devs:
    mm = MemoryMonitor(dev)
    mm.get_pid_of_dashcam()
    mms.append(mm)
cm = CentralizedMonitor(mms)
cm.loop(email_report=2)
